//
//  XOShopDetailSegementControlHeaderReusableView.m
//  XiOuMall
//
//  Created by lifayu on 2018/3/1.
//  Copyright © 2018年 lifayu. All rights reserved.
//

#import "XOShopDetailSegementControlHeaderReusableView.h"

@implementation XOShopDetailSegementControlHeaderReusableView

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _segmentedControl.selectionIndicatorLocation = HMSegmentedControlSelectionIndicatorLocationDown;
    _segmentedControl.backgroundColor = [UIColor whiteColor];
    _segmentedControl.titleTextAttributes = @{NSForegroundColorAttributeName : UIColorFromRGB(0x3C4151),NSFontAttributeName:[UIFont systemFontOfSize:14.0]};
    _segmentedControl.selectedTitleTextAttributes = @{NSForegroundColorAttributeName : AppMainColor,NSFontAttributeName:[UIFont systemFontOfSize:14.0]};
    _segmentedControl.segmentWidthStyle = HMSegmentedControlSegmentWidthStyleFixed;
    _segmentedControl.selectionStyle = HMSegmentedControlSelectionStyleTextWidthStripe;
    _segmentedControl.selectionIndicatorHeight = 0;
    _segmentedControl.sectionTitles = @[@"全部",@"销量",@"上新",@"活动"];
}

@end
